package org.zfes.snowier.zbss.xzy.biz.config.model;
import org.zfes.snowier.core.data.IBaseModel;
public class ConfigItem extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public ConfigItem() {}
	public ConfigItem(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

	  private java.lang.Long  parentId;
	  
	@javax.validation.constraints.NotBlank(message="配置编码不能为空")
	@javax.validation.constraints.NotNull(message="配置编码不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="配置编码长度不能大于100")
	  private java.lang.String code;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="配置名称长度不能大于100")
	  private java.lang.String name;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	@javax.validation.constraints.NotNull(message="数据类型不能为空")
	  private java.lang.Byte dataType;
	  private java.lang.Long cateId;
	  private java.lang.Byte status;
	
	//<-------------------------------------------->
	public ConfigItem setCode(java.lang.String code){
		this.code=code==null?null:code.trim();
	 return this;
	}
	public java.lang.String getCode(){
		return this.code;
	}
	public ConfigItem setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public ConfigItem setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public ConfigItem setDataType(java.lang.Byte dataType){
	 this.dataType=dataType;
	 return this;
	}
	public java.lang.Byte getDataType(){
		return this.dataType;
	}
	public ConfigItem setCateId(java.lang.Long cateId){
	 this.cateId=cateId;
	 return this;
	}
	public java.lang.Long getCateId(){
		return this.cateId;
	}
	public ConfigItem setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public java.lang.Long getParentId() {
		return parentId;
	}
	public void setParentId(java.lang.Long parentId) {
		this.parentId = parentId;
	}
	@Override
	public String toString() {
		return "AIConfigItem [parentId=" + parentId + ", code=" + code + ", name=" + name + ", remark=" + remark
				+ ", dataType=" + dataType + ", cateId=" + cateId + ", status=" + status + "]";
	}
	

}
